import request from '@/config/axios'
/**
 * 分页查询用药计划
 */
export const pageQuery = (params) => {
  return request.get({ url: '/health/medicine-plan/page-query', params })
}

/**
 * 创建用药计划
 */
export const create = (data) => {
  return request.post({ url: '/health/medicine-plan/create', data })
}

/**
 * 获取单个用药计划
 */
export const get = (id) => {
  return request.get({ url: '/health/medicine-plan/get?id=' + id })
}

/**
 * 更新用药计划
 */
export const update = (data) => {
  return request.put({ url: '/health/medicine-plan/update', data })
}

/**
 * 删除用药计划
 */
export const deleted = (id) => {
  return request.delete({ url: '/health/medicine-plan/deleted?id=' + id })
}

/**
 * 获取单个用药计划
 */
export const singleGet = (id) => {
  return request.get({ url: '/health/medicine-plan/single-get?id=' + id })
}
